import java.io.File;

public class FileTest2 {

    public static void main(String[] args) {
        File file = new File("./");
        eachFile(file);
    }

    private static void eachFile(File file) {

        if (file.isDirectory()) {
            for (File listFile : file.listFiles()) {
                eachFile(listFile);
            }
        }
        System.out.println(file.getAbsolutePath());
    }
}
